package com.kr.weitao.util.rest.query;

import com.alibaba.fastjson.JSONObject;
import com.kr.weitao.exception.CommonException;
import com.kr.weitao.util.rest.condition.EColumnAuthority;
import com.kr.weitao.util.spring.SpringUtils;

/** Created by paco on 2017/06/09. */
public class ObjectModify {
  public long update(JSONObject param) throws CommonException {
    long count = 0;
    ObjectModifyUtil objectModifyUtil = SpringUtils.getBean(ObjectModifyUtil.class);
    count = objectModifyUtil.execute(param, EColumnAuthority.modifydate);

    return count;
  }
}
